<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">
         arr=[1,56,23,6,43,87,3,5,55];
        function max(arr){
        	var max=arr[0];
         for(i=0;i<arr.length;i++){
           if(arr[i]>max){
           	max=arr[i];
           }

         }
         alert(max);


     }
        

        arr1=[1,56,23,[66,99],87,[43,87,3,5],55];
        function maxlength(arr){
        	  var max=1;
              for(var i=0;i<arr1.length;i++){
              	if(arr1[i] instanceof Array){
              		if(arr1[i].length>max){
              			max=i;
              		}
              	}
              }
              alert(max)
        }
        maxlength(arr1);
	</script>
</head>
<body>
	
</body>
</html>